<template>
  <div>
    <mobile v-if="is_mobile"></mobile>
    <pc v-else></pc>
  </div>
</template>

<script>
import mobile from "./survey/mobile.vue";
import pc from "./survey/pc.vue";
export default {
  components: { mobile, pc },
  data() {
    return {
      is_mobile: false,
    };
  },
  created() {
    this.is_mobile =
      navigator.userAgent
        .toLowerCase()
        .match(
          /(ipod|ipad|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i
        ) != null;
  },
};
</script>

<style scoped></style>
